<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<table width="100%" cellpadding="2" cellspacing="0" id="box-table-a" align="center">
            <tbody>
            <tr>
                <th class="txtTitAzul"><div align="center">Curso</div></th>
                <th class="txtTitAzul"><div align="center">Semana ${requestScope.cabecera.nota1}</div></th>
                <th class="txtTitAzul"><div align="center">Semana ${requestScope.cabecera.nota2}</div></th>
                <th class="txtTitAzul"><div align="center">Semana ${requestScope.cabecera.nota3}</div></th>
                <th class="txtTitAzul"><div align="center">Promedio Semanal</div></th>
                <th class="txtTitAzul"><div align="center">Examen Mensual</div></th>
                <th class="txtTitAzul"><div align="center">Promedio Mes ${requestScope.cabecera.mensual}</div></th>
            </tr>
             
            <c:forEach items="${requestScope.notas}" var="nota" >
                <fmt:formatNumber type="number" pattern="0.00" value="${nota.nota1}" var="n1" />
                <fmt:formatNumber type="number" pattern="0.00" value="${nota.nota2}" var="n2" />
                <fmt:formatNumber type="number" pattern="0.00" value="${nota.nota3}" var="n3" />
                <fmt:formatNumber type="number" pattern="0.00" value="${nota.promedioSemanal}" var="n4" />
                <fmt:formatNumber type="number" pattern="0.00" value="${nota.mensual}" var="n5" />
                <fmt:formatNumber type="number" pattern="0.00" value="${nota.promedioMes}" var="n6" />
                <c:set var="nota1A" value="<div style=color:#881111> ${n1}</div>" />
                <c:set var="nota1D" value="<div style=color:#111188> ${n1}</div>" />
                <c:set var="nota2A" value="<div style=color:#881111> ${n2}</div>" />
                <c:set var="nota2D" value="<div style=color:#111188> ${n2}</div>" />
                <c:set var="nota3A" value="<div style=color:#881111> ${n3}</div>" />
                <c:set var="nota3D" value="<div style=color:#111188> ${n3}</div>" />
                <c:set var="nota4A" value="<div style=color:#881111> ${n4}</div>" />
                <c:set var="nota4D" value="<div style=color:#111188> ${n4}</div>" />
                <c:set var="nota5A" value="<div style=color:#881111> ${n5}</div>" />
                <c:set var="nota5D" value="<div style=color:#111188> ${n5}</div>" />
                <c:set var="nota6A" value="<div style=color:#881111> ${n6}</div>" />
                <c:set var="nota6D" value="<div style=color:#111188> ${n6}</div>" />  
                <tr>
                    <td align="left" class="txtBase">${nota.curso} </td> 
                    <td align="center" class="txtBase">${nota.nota1==0?'--':nota.nota1<11?nota1A:nota1D}</td> 
                    <td align="center" class="txtBase">${nota.nota2==0?'--':nota.nota2<11?nota2A:nota2D}</td> 
                    <td align="center" class="txtBase">${nota.nota3==0?'--':nota.nota3<11?nota3A:nota3D}</td>
                    <td align="center" class="txtBase">${nota.promedioSemanal==0?'--':nota.promedioSemanal<11?nota4A:nota4D}</td> 
                    <td align="center" class="txtBase">${nota.mensual==0?'--':nota.mensual<11?nota5A:nota5D}</td> 
                    <td align="center" class="txtBase">${nota.promedioMes==0?'--':nota.promedioMes<11?nota6A:nota6D}</td>
                </tr>       
            </c:forEach>
        </tbody>
    </table>

